package kercar.device;

import java.rmi.Remote;
import java.rmi.RemoteException;

import kercar.compass.Compass;
import kercar.gps.GPSPosition;

public interface RemoteDevice extends Remote {

	public void startRide(GPSPosition destination, boolean takePhoto, String mail) throws RemoteException;
	
	public void cancelRide() throws RemoteException;
	
	public void moveForward(double speed) throws RemoteException;

	public void moveBackward(double speed) throws RemoteException;

	public void turn(int angle) throws RemoteException;

	public void stopMoving() throws RemoteException;
	
	public boolean isArrived() throws RemoteException;
	
	public GPSPosition getPosition() throws RemoteException;
	
	public Compass getCompass() throws RemoteException;
	
}
